imcontextsimple: Ignore more modifiers in compose
authorUlli Kehrle <ulli@hrnz.li>
Wed, 21 Apr 2021 23:50:35 +0000 (01:50 +0200)
committerUlli Kehrle <ulli@hrnz.li>
Thu, 22 Apr 2021 01:56:30 +0000 (03:56 +0200)
commitc78ec37d83b54a0789ac761725f4fc5b700e23ec
tree94b2c9318744f1f4059ca39af109d6a561808adf
parentebd8338795e2b15516fdd93429f4c82b73fe8ca3
imcontextsimple: Ignore more modifiers in compose

Previously it was impossible to compose characters on higher levels of
some keyboard layouts as pressing the level selection key would just
exit compose mode.

Examples for affected keyboard layouts include the Latvian
apostrophe-variant "lv(apostrophe)" (latched third level), the extended
German keyboard layout "de(e1)" (latched fifth level) as well as the
multilingual Canadian keyboard layout "ca(multix)" and the German
neo-layout "de(neo)" and its descendants (shifted fifth level).

To reproduce, set a compose key and select the Latvian apostrophe layout.
Notice that you now can input [ by pressing first the ' and then the 8-key.
Then pressing <compose>'8'8 should produce ⟦, but prior to this patch it
did not.
gtk/gtkimcontextsimple.c